import request from '@/utils/request'

/**
 *  获取轮播图
 *
 */
export function fetchBannerList(data) {
	return request?.get?.('/banner/getBanner', data, {noAuth: true,})
}

export function add(data) {
	return request?.post?.(`/api/esb/actionFlowBase`, data, { noAuth: false })
}

export function deleteById(id) {
	return request?.delete?.(`/api/esb/actionFlowBase/${id}`, {}, { noAuth: false })
}

export function updateById(data) {
	return request?.put?.(`/api/esb/actionFlowBase/${data.id}`, data, { noAuth: false })
}